package com.wltjack.common.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName PageDto
 * @Description 分页查询Dto
 * @Author kangliang
 * @Date 2021/07/05 19:32
 * @Version 1.0
 */
@Data
public class PageDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "页号", required = true)
    @NotNull(message = "不能为空")
    private Integer pageNumber = 0;

    @ApiModelProperty(value = "页面大小", required = true)
    @NotNull(message = "不能为空")
    private Integer pageSize;

    @ApiModelProperty(value = "排序字段")
    private String sort;

    @ApiModelProperty(value = "排序方式 asc/desc")
    private String order;

}
